<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
			transition: all .5s;
		}
		#ipt{
			margin-top: 100px;
			margin-left: 300px;
			width: 150px;
		}
		ul{
			margin-left: 300px;
			list-style-type: none;
			
			width: 152px;
			
		}
		ul li {
			border-top: none;
			width: 152px;
			border: 1px solid #000;
		}
	</style>
</head>

<body>
	<input id="ipt" type="text" name=""><button id="btn">搜索</button>
  <ul>
  <li>123132</li>
  </ul>
    <script src='node_modules/jquery/dist/jquery.js' type="text/javascript"></script>
	<script type="text/javascript">
	  g= function(){return 1};
	  $('#btn').click(function(){
	  	function g(){
	  		return 2
	  	};
	  	alert(g())
	  	function g(){
             return 3
	  	}
	  });
    function g(){
    	return 4
    }
	</script>
</body>
</html>